import  fcgi.Thread;
import  fcgi.Connection;
import  fcgi.Request;

int myrun(FastCGIRequest request)
{
    request.stdout.write("Content-type: text/html\r\n\r\n");
    request.stdout.write("Hello world!\n");

    return 0;
}

int main(char[][] args)
{
//    FastCGIConnection connection = new FastCGIConnection ();
//    return FastCGIThread.loop(connection, &myrun, true, 10);

    return FastCGIThread.loop(null, &myrun, true, 10);
}
